package com.java.module.user.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.java.common.lang.annotation.Excel;
import com.java.common.lang.domain.BaseEntity;

/**
 * 基础：用户消息对象 user_message_assign
 *
 * @author Administrator
 * @date 2021-03-24
 */
public class MessageAssign extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    private Long maid;

    /**
     * $column.columnComment
     */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long mid;

    /**
     * $column.columnComment
     */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long uid;

    /**
     * 读取状态：2未读 1已读
     */
    @Excel(name = "读取状态：2未读 1已读")
    private Integer readStatus;

    /**
     * 平台标志：1安卓 2苹果 3电脑
     */
    @Excel(name = "平台标志：1安卓 2苹果 3电脑")
    private Integer platform;

    /**
     * 删除标志（0默认 1删除）
     */
    private Integer delFlag;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createTime;

    @Override
    public Date getCreateTime() {
        return createTime;
    }

    @Override
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public void setMaid(Long maid) {
        this.maid = maid;
    }

    public Long getMaid() {
        return maid;
    }

    public void setMid(Long mid) {
        this.mid = mid;
    }

    public Long getMid() {
        return mid;
    }

    public void setUid(Long uid) {
        this.uid = uid;
    }

    public Long getUid() {
        return uid;
    }

    public void setReadStatus(Integer readStatus) {
        this.readStatus = readStatus;
    }

    public Integer getReadStatus() {
        return readStatus;
    }

    public void setPlatform(Integer platform) {
        this.platform = platform;
    }

    public Integer getPlatform() {
        return platform;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    @Override
    public String toString() {
        return "MessageAssign{" + "maid=" + maid + ", mid=" + mid + ", uid=" + uid + ", readStatus=" + readStatus
                + ", platform=" + platform + ", delFlag=" + delFlag + '}';
    }

}